package com.generator.marketManage.orderManage.service;

import com.generator.marketManage.orderManage.pojo.*;
import com.generator.util.PageModel;

import java.util.List;

public interface IOrderManageService {

    //    条件查询处于审核中的订单
    public PageModel<Order> queryOrder(OrderCondition condition, PageModel<Order>pageModel);

    //订购单编号查某一订单详情
    public List<Order> queryOrderById(OrderCondition orderCondition);

    //    根据订单id查询订单明细
    public List<OrderDetail> queryOrderDetailById(OrderDetail orderDetail);

    //根据订单号删除订单
    public Integer deleteOrder(OrderCondition condition);

    //根据部门查询职位
    public List<Job> queryJobByDept(Job job);

    //根据职位查姓名
    public List<Job> queryNameByJob(Job job);

    //提交审核
    public Integer suubCheck(Order order);

    //添加，修改页面加载完成查询所有品牌
    public List<Brand> queryBrand();

    //根据品牌查询类型
    public List<Type> queryTypeByBrand(Brand brand);

    //根据类型查询型号
    public List<Product> queryModelByType(Type type);

    //根据商品id查商品信息
    public Product queryProductDetail(Product product);

    //    插入商品明细
    public boolean detailAdd(List<OrderDetail> orderDetails);
}
